const readlindSync = require('readline-sync');//输入模块
const judge = require('./judge');

 module.exports = function addid(){
    console.log('请输入要打印的学生的学号（格式： 学号, 学号,...），按回车提交：');
    let studentid = readlindSync.question();
    while(!judge.inputidcheck(studentid)){
        studentid = readlindSync.question();
    }
    studentid = studentid.split(',');
    return studentid;
}